package leecode

import "strings"

func findTheDifference(s string, t string) byte {
	result := make([]byte, 1)
	tArr := strings.Split(t, "")
	for _, val := range tArr {
		if !strings.Contains(s, val) {
			result = []byte(val)
		} else {
			s = strings.Replace(s, val, "X", 1)
		}
	}
	return result[0]
}
